//Author: Bjorn Schobben

#ifndef COLORBUTTON_H
#define COLORBUTTON_H

#include <QPushButton>
#include "Color.h"

//This class is a expanded version of QPushButton
//Functions are added for compatibility with the program
class ColorButton: public QPushButton, public Color
{
	Q_OBJECT

public:
	//Constructor
	ColorButton(QWidget *parent = 0);
	
	//Destructor
	virtual ~ColorButton();
	
	// Overloaded function
	virtual void SetColorValue(int color);

signals:
	void clicked(ColorButton *, Color color);

private slots:
	void onClicked();
	
private:
	// Helper functions
	void Initialize();

	static const unsigned int PIXMAPSIZE = 30;
};

#endif //COLORBUTTON_H